package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MealPayExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public MealPayExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andVipMealpayIdIsNull() {
            addCriterion("vip_mealpay_id is null");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdIsNotNull() {
            addCriterion("vip_mealpay_id is not null");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdEqualTo(Integer value) {
            addCriterion("vip_mealpay_id =", value, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdNotEqualTo(Integer value) {
            addCriterion("vip_mealpay_id <>", value, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdGreaterThan(Integer value) {
            addCriterion("vip_mealpay_id >", value, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vip_mealpay_id >=", value, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdLessThan(Integer value) {
            addCriterion("vip_mealpay_id <", value, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdLessThanOrEqualTo(Integer value) {
            addCriterion("vip_mealpay_id <=", value, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdIn(List<Integer> values) {
            addCriterion("vip_mealpay_id in", values, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdNotIn(List<Integer> values) {
            addCriterion("vip_mealpay_id not in", values, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdBetween(Integer value1, Integer value2) {
            addCriterion("vip_mealpay_id between", value1, value2, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andVipMealpayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vip_mealpay_id not between", value1, value2, "vipMealpayId");
            return (Criteria) this;
        }

        public Criteria andUsertelIsNull() {
            addCriterion("usertel is null");
            return (Criteria) this;
        }

        public Criteria andUsertelIsNotNull() {
            addCriterion("usertel is not null");
            return (Criteria) this;
        }

        public Criteria andUsertelEqualTo(String value) {
            addCriterion("usertel =", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelNotEqualTo(String value) {
            addCriterion("usertel <>", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelGreaterThan(String value) {
            addCriterion("usertel >", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelGreaterThanOrEqualTo(String value) {
            addCriterion("usertel >=", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelLessThan(String value) {
            addCriterion("usertel <", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelLessThanOrEqualTo(String value) {
            addCriterion("usertel <=", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelLike(String value) {
            addCriterion("usertel like", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelNotLike(String value) {
            addCriterion("usertel not like", value, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelIn(List<String> values) {
            addCriterion("usertel in", values, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelNotIn(List<String> values) {
            addCriterion("usertel not in", values, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelBetween(String value1, String value2) {
            addCriterion("usertel between", value1, value2, "usertel");
            return (Criteria) this;
        }

        public Criteria andUsertelNotBetween(String value1, String value2) {
            addCriterion("usertel not between", value1, value2, "usertel");
            return (Criteria) this;
        }

        public Criteria andMealIdIsNull() {
            addCriterion("meal_id is null");
            return (Criteria) this;
        }

        public Criteria andMealIdIsNotNull() {
            addCriterion("meal_id is not null");
            return (Criteria) this;
        }

        public Criteria andMealIdEqualTo(Integer value) {
            addCriterion("meal_id =", value, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdNotEqualTo(Integer value) {
            addCriterion("meal_id <>", value, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdGreaterThan(Integer value) {
            addCriterion("meal_id >", value, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("meal_id >=", value, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdLessThan(Integer value) {
            addCriterion("meal_id <", value, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdLessThanOrEqualTo(Integer value) {
            addCriterion("meal_id <=", value, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdIn(List<Integer> values) {
            addCriterion("meal_id in", values, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdNotIn(List<Integer> values) {
            addCriterion("meal_id not in", values, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdBetween(Integer value1, Integer value2) {
            addCriterion("meal_id between", value1, value2, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealIdNotBetween(Integer value1, Integer value2) {
            addCriterion("meal_id not between", value1, value2, "mealId");
            return (Criteria) this;
        }

        public Criteria andMealNameIsNull() {
            addCriterion("meal_name is null");
            return (Criteria) this;
        }

        public Criteria andMealNameIsNotNull() {
            addCriterion("meal_name is not null");
            return (Criteria) this;
        }

        public Criteria andMealNameEqualTo(String value) {
            addCriterion("meal_name =", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameNotEqualTo(String value) {
            addCriterion("meal_name <>", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameGreaterThan(String value) {
            addCriterion("meal_name >", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameGreaterThanOrEqualTo(String value) {
            addCriterion("meal_name >=", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameLessThan(String value) {
            addCriterion("meal_name <", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameLessThanOrEqualTo(String value) {
            addCriterion("meal_name <=", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameLike(String value) {
            addCriterion("meal_name like", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameNotLike(String value) {
            addCriterion("meal_name not like", value, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameIn(List<String> values) {
            addCriterion("meal_name in", values, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameNotIn(List<String> values) {
            addCriterion("meal_name not in", values, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameBetween(String value1, String value2) {
            addCriterion("meal_name between", value1, value2, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealNameNotBetween(String value1, String value2) {
            addCriterion("meal_name not between", value1, value2, "mealName");
            return (Criteria) this;
        }

        public Criteria andMealMoneyIsNull() {
            addCriterion("meal_money is null");
            return (Criteria) this;
        }

        public Criteria andMealMoneyIsNotNull() {
            addCriterion("meal_money is not null");
            return (Criteria) this;
        }

        public Criteria andMealMoneyEqualTo(Double value) {
            addCriterion("meal_money =", value, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyNotEqualTo(Double value) {
            addCriterion("meal_money <>", value, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyGreaterThan(Double value) {
            addCriterion("meal_money >", value, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("meal_money >=", value, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyLessThan(Double value) {
            addCriterion("meal_money <", value, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyLessThanOrEqualTo(Double value) {
            addCriterion("meal_money <=", value, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyIn(List<Double> values) {
            addCriterion("meal_money in", values, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyNotIn(List<Double> values) {
            addCriterion("meal_money not in", values, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyBetween(Double value1, Double value2) {
            addCriterion("meal_money between", value1, value2, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andMealMoneyNotBetween(Double value1, Double value2) {
            addCriterion("meal_money not between", value1, value2, "mealMoney");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNull() {
            addCriterion("pay_time is null");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNotNull() {
            addCriterion("pay_time is not null");
            return (Criteria) this;
        }

        public Criteria andPayTimeEqualTo(Date value) {
            addCriterion("pay_time =", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotEqualTo(Date value) {
            addCriterion("pay_time <>", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThan(Date value) {
            addCriterion("pay_time >", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_time >=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThan(Date value) {
            addCriterion("pay_time <", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThanOrEqualTo(Date value) {
            addCriterion("pay_time <=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeIn(List<Date> values) {
            addCriterion("pay_time in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotIn(List<Date> values) {
            addCriterion("pay_time not in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeBetween(Date value1, Date value2) {
            addCriterion("pay_time between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotBetween(Date value1, Date value2) {
            addCriterion("pay_time not between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusIsNull() {
            addCriterion("mealpay_status is null");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusIsNotNull() {
            addCriterion("mealpay_status is not null");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusEqualTo(String value) {
            addCriterion("mealpay_status =", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusNotEqualTo(String value) {
            addCriterion("mealpay_status <>", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusGreaterThan(String value) {
            addCriterion("mealpay_status >", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusGreaterThanOrEqualTo(String value) {
            addCriterion("mealpay_status >=", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusLessThan(String value) {
            addCriterion("mealpay_status <", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusLessThanOrEqualTo(String value) {
            addCriterion("mealpay_status <=", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusLike(String value) {
            addCriterion("mealpay_status like", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusNotLike(String value) {
            addCriterion("mealpay_status not like", value, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusIn(List<String> values) {
            addCriterion("mealpay_status in", values, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusNotIn(List<String> values) {
            addCriterion("mealpay_status not in", values, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusBetween(String value1, String value2) {
            addCriterion("mealpay_status between", value1, value2, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andMealpayStatusNotBetween(String value1, String value2) {
            addCriterion("mealpay_status not between", value1, value2, "mealpayStatus");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumIsNull() {
            addCriterion("vip_order_num is null");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumIsNotNull() {
            addCriterion("vip_order_num is not null");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumEqualTo(String value) {
            addCriterion("vip_order_num =", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumNotEqualTo(String value) {
            addCriterion("vip_order_num <>", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumGreaterThan(String value) {
            addCriterion("vip_order_num >", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumGreaterThanOrEqualTo(String value) {
            addCriterion("vip_order_num >=", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumLessThan(String value) {
            addCriterion("vip_order_num <", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumLessThanOrEqualTo(String value) {
            addCriterion("vip_order_num <=", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumLike(String value) {
            addCriterion("vip_order_num like", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumNotLike(String value) {
            addCriterion("vip_order_num not like", value, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumIn(List<String> values) {
            addCriterion("vip_order_num in", values, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumNotIn(List<String> values) {
            addCriterion("vip_order_num not in", values, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumBetween(String value1, String value2) {
            addCriterion("vip_order_num between", value1, value2, "vipOrderNum");
            return (Criteria) this;
        }

        public Criteria andVipOrderNumNotBetween(String value1, String value2) {
            addCriterion("vip_order_num not between", value1, value2, "vipOrderNum");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}